package com.jasmine.bjstkserver.server.user;

import com.jasmine.auth.AuthUserService;
import com.jasmine.auth.model.UserInfo;
import com.jasmine.bjstkserver.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author jasmineXz
 */
@Service
public class UserServiceImpl implements AuthUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public UserInfo findUserByUsername(String... userIdentification) {
        return userMapper.findUserByUsername(userIdentification[0],userIdentification[1]);
    }
}
